Method and Implementation for Information Exchange Using Markov Models

ABSTRACT

The replacement of secret keys is a central problem in key management. Typical solutions exchange handshaking messages, involve complex computations, or require the cooperation of trusted third parties. Disclosed herein is a key replacement method that exploits the randomness of Markov models to efficiently provide fresh keys to users. Unlike other methods, the proposed method removes the need for extra communications, intensive computation, or third parties. It is demonstrated that the proposed method has perfect forward secrecy as well as resistance to known-key attacks.

CROSS REFERENCE TO RELATED APPLICATIONS

This application claims benefit under 35 U.S.C. §119(e) to U.S. Provisional Patent Application No. 61/108,327, entitled “Method and Implementation for Key Generation and Replacement Using Markov Models,” to Baras et al., filed Oct. 24, 2008, the entirety of which is hereby incorporated by reference as if fully set forth herein.

STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH AND DEVELOPMENT

This invention was made with support under DAAD190120011 awarded by the Army Research Laboratory (ARL). The government has certain rights in the invention.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention is generally directed to systems, apparatuses, and methods for exchanging information. The present invention is more particularly directed to systems, apparatuses, and methods for exchanging information in a secure manner.

2. Background Art

The replacement of secret keys is a central problem in key management. The danger of a key being compromised increases with the duration of its use. (See W. Fumy and P. Landrock, “Principles of Key Management,” IEEE J. Sel. Areas Commun., vol. 111, no. 5, pp. 785-793, June 1993, the entirety of which is incorporated by reference herein.) For example, each act of authentication requires partial revelation of a secret key which can result in eventual compromise. (See U. M. Maurer, “Authentication Theory and Hypothesis Testing,” IEEE Trans. Inf. Theory, vol. 46, no. 4, pp. 1350-1356, July 2000, the entirety of which is incorporated by reference herein.) Therefore, it is important to replace the key before it is compromised. However, unless efficient key replacement algorithms are used, significant overhead may be introduced into the system.

Secret keys are often used in symmetric encryption. Symmetric keys give the most security per bit (see R. D. Silverman, “A Cost-Based Security Analysis of Symmetric and Asymmetric Key Lengths,” RSA Labs., Bulletin 13, November 2001, the entirety of which is incorporated by reference herein), followed by elliptic curve keys (see V. S. Miller, “Use of Elliptic Curves in Cryptography,” Lecture notes in Computer Sciences (CRYPTO 85), vol. 218, pp. 417-426, 1985; N. Koblitz, “Elliptic Curve Cryptosystems,” Mathematics of Computation, vol. 48, no. 177, pp. 203-209, January 1987, the entirety of each of which is incorporated by reference herein), and finally Rivest-Shamir-Adleman (RSA) keys give the least security per bit (see R. L. Rivest, A. Shamir, and L. Adleman, “A Method for Obtaining Digital Signatures and Public-Key Cryptosystems,” Communications of the ACM, vol. 21, no. 2, pp. 120-126, 1978, the entirety of which is incorporated by reference herein). That is, for the same length key, a symmetric key system is harder to defeat than asymmetric, public-key based systems. Symmetric keys are typically used in high-rate applications since symmetric encryptions are generally much faster than asymmetric encryptions.

Traditional key replacement strategies fall under three paradigms:

-   -   1) Distribute secret keys over a secure channel that has limited         availability.     -   2) Use third parties to help manage keys. This includes the use         of public key infrastructures and key authorities.     -   3) Negotiate keys over an insecure channel.         Nonetheless, there exists a need for key replacement methods,         and applications thereof, that not only meet security         requirements, but also are efficient to allow more-frequent key         replacements.

BRIEF SUMMARY OF THE INVENTION

The present invention meets the above-described needs by providing a system for exchanging information using Markov models, and applications thereof.

For example, an embodiment of the present invention provides an example method for sending information responsive to a variable that changes over time. According to this example method, a message is provided responsive to a current variable. A plurality of potential next variables are generated based on a transition function that specifies a transition probability from the current variable to other variables, wherein the transition probability from the current variable to each potential next variable is greater than zero. One of the plurality of potential next variables is assigned as a next variable. A subsequent message is provided responsive to the next variable.

Another embodiment of the present invention provides an example method for receiving information responsive to a variable that changes over time. According to this example method, a message is received responsive to a current variable. A plurality of potential next variables are generated based on a transition function that specifies a transition probability from the current variable to other variables, wherein the transition probability from the current variable to each potential next variable is greater than zero. A next variable is identified based on an integrity check of each potential next variable. A subsequent message is received responsive to the next variable.

A further embodiment of the present invention provides a transmitter for sending information responsive to a variable that changes over time. The transmitter includes a message-generation module, a variable-generation module, and an assignment module. The message-generation module is configured to provide a message responsive to a current variable. The variable-generation module is configured to generate a plurality of potential next variables based on a transition function that specifies a transition probability from the current variable to other variables, wherein the transition probability from the current variable to each potential next variable is greater than zero. The assignment module is configured to assign one of the plurality of potential next variables to be a next variable. The message-generation module is then configured to provide a subsequent message responsive to the next variable.

A still further embodiment of the present invention provides a receiver for receiving information responsive to a variable that changes over time. The receiver includes a reception module, a variable-generator module, and a variable-identifier module. The reception module is configured to receive a current message responsive to a current variable. The variable-generator module is configured to generate a plurality of potential next variables based on a transition function that specifies a transition probability from the current variable to other variables, wherein the transition probability from the current variable to each potential next variable is greater than zero. The variable-identifier module is configured to identify a next variable based on an integrity check of each potential next variable. The reception module is then configured to receive a subsequent message responsive to the next variable.

A still further embodiment of the present invention provides a system, comprising a transmitter for sending information responsive to a variable that changes over time and a receiver for receiving information responsive to the variable that changes over time.

Further features and advantages of the invention, as well as the structure and operation of various embodiments of the invention, are described in detail below with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES

The accompanying drawings, which are incorporated herein and form part of the specification, illustrate the present invention and, together with the description, further serve to explain the principles of the invention and to enable a person skilled in the relevant art(s) to make and use the invention.

FIG. 1 illustrates an example Markov model with a total of four states, wherein a current state may transition into two possible states.

FIG. 2 illustrates a fully specified Markov model with 32-bit keys, a total of 2³² states, and a branching factor of 2, wherein such a Markov model requires at least one gigabyte of memory to store.

FIG. 3 illustrates construction of a random access Markov model, wherein a pseudo-random number generator generates key transitions from a current key in accordance with an embodiment of the present invention.

FIG. 4A illustrates a graph with a small reachable subspace.

FIG. 4B illustrates a periodic graph.

FIG. 5 illustrates an example bowtie digraph connected to a giant connected component, wherein G⁺ leads into the giant connected component and G⁻ emanates from the giant connected component.

FIG. 6 illustrates the entropy of a next 64-bit key for various branching factors in accordance with an embodiment of the present invention.

FIG. 7 illustrates that a distribution of stationary probabilities are well approximated with a Rayleigh distribution for small branching factors (e.g., d=4).

FIG. 8 illustrates that a distribution of stationary probabilities are well approximated with a Gaussian distribution for large branching factors (e.g., d=32).

FIG. 9 illustrates the entropy of example Markov models given a current key in accordance with embodiments of the present invention.

FIG. 10 illustrates the probability of missed detection in accordance with an embodiment of the present invention.

FIG. 11 illustrates the number of key transitions before failure for various confidences.

FIG. 12 illustrates an example system, in accordance with an embodiment of the present invention, for sending and receiving information responsive to a variable that changes over time.

FIG. 13 illustrates an example method, in accordance with an embodiment of the present invention, for sending information responsive to a variable that changes over time.

FIG. 14 illustrates an example method, in accordance with an embodiment of the present invention, for receiving information responsive to a variable that changes over time.

FIG. 15 illustrates an example computer system in accordance with an embodiment of the present invention.

The features and advantages of the present invention will become more apparent from the detailed description set forth below when taken in conjunction with the drawings, in which like reference characters identify corresponding elements throughout. In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. The drawing in which an element first appears is indicated by the leftmost digit(s) in the corresponding reference number.

DETAILED DESCRIPTION OF THE INVENTION I. Overview

Embodiments of the present invention are directed to information exchange using Markov models, and applications thereof. As used herein, references to “one embodiment,” “an embodiment,” “an example embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

An embodiment of the present invention provides a method for sending and receiving information responsive to a variable that changes over time. This method has applications in cryptography, frequency-hopping communication systems, or in other applications in which information is exchanged responsive to a variable that changes over time. For example, the variable may be (i) a session key used to encrypt and decrypt messages, (ii) a carrier frequency used to transmit and receive data, or (iii) another variable, associated with information exchange, that changes over time.

According to this method, during a current epoch, a sending party provides information responsive to a current variable; and during a subsequent epoch, the sending party provides information responsive to a next variable. For example, during the current epoch, the sending party may encrypt a message using a current session key or may transmit a message using a current carrier frequency; and during the subsequent epoch, the sending party may encrypt a subsequent message using a next session key or may transmit a subsequent message using a next carrier frequency. In order for a receiving party to properly receive the messages sent by the sending party, the receiving party must use the appropriate variable during the appropriate epoch. In a cryptography application, for example, the receiving party must use the current session key to decrypt messages during the current epoch and must use the next session key to decrypt messages during the subsequent epoch. In a frequency-hopping application, as another example, the receiving party must use the current carrier frequency during the current epoch and must use the next carrier frequency during the subsequent epoch.

As used herein, an “epoch” reference to a time period during which information is sent and/or received. Each epoch may comprise a fixed interval of time or variable intervals of time.

Rather than assuming the availability of a secure channel or trusted third parties for communicating how the variable changes from one epoch to the next, embodiments of the present invention provide systems, apparatuses, and methods that enable a receiving party to determine a next variable by using a random access Markov model. According to embodiments, the sending party and receiving party may independently generate transitions of the random access Markov model by using a long-term variable (e.g., long-term key) and a current variable (e.g., current key). However, the random access Markov models of embodiments of the present invention are of sufficient complexity that it is not feasible for such models to be stored in memory, thereby reducing the possibility that an adversary may be able to deduce the long- and short-term variables through brute-force efforts.

For illustrative purposes only, and not limitation, embodiments of the present invention will be described herein in the context of cryptography. That is, in the description that follows, the variable will be described as a key, and the change of that variable will be described as key replacement. A person skilled in the relevant art(s) will appreciate, however, that methods of embodiments of the present invention may be utilized in other applications (e.g., frequency-hopped communications systems) in which information is exchanged responsive to a variable that changes from one epoch to another.

In the context of cryptography, a method in accordance with an embodiment of the present invention exploits the randomness of Markov models to efficiently provide secure key replacements to users (e.g., sending parties and receiving parties). Unlike other methods, this method removes the need for:

-   -   explicit communication between sender and receiver;     -   the presence and cooperation of trusted third parties; and     -   large storage requirements.

The security of this example key replacement method is quantified based on key equivocation. With careful selection of parameters, security can be very high with only modest communication, computation, and memory requirements. In particular, it is difficult for adversaries to deduce the current session key. Further, even when an adversary is able to deduce the current session key, the adversary is unable to gain significant advantage in deducing past or future keys.

II. Example Environment

Any key replacement method should satisfy certain security requirements in order to be useful. Methods that are also efficient allow for more frequent key replacements. Described below are (A) example security requirements and (B) example efficiency metrics.

A. Key Security

Key replacement is described herein in terms of the following scenario: a sending party (e.g., Alice) and a receiving party (e.g., Bob) share a pre-distributed secret key l and use it to generate session keys {k_(i)}. They use the session key k_(i) to encrypt their messages in the i^(th) epoch. Occasionally, they wish to replace it with a fresh (e.g., new) key. The key l is a long-term key and is rarely replaced. The session keys {k_(i)} are short-term keys and are replaced relatively often.

There is an adversary who wants to deduce the secret keys (long- or short-term) given her observations of the encrypted messages. Of interest is the adversary's ability to deduce the secret keys both as an outsider and as a one-time insider. As used herein, an outsider is an entity that knows only what is generally available (e.g., the key replacement method), but not privileged information (e.g., any of the keys). A one-time insider is an entity that has access to privileged information (e.g., one or more keys). A one-time insider gains privileged information at only one point in time. In particular, when the adversary is a one-time insider, potential issues are the secrecy of past keys (perfect forward secrecy) and future keys (susceptibility to known-key attacks). (See A. J. Menezes, P. C. van Oorschot, and S. A. Vanstone, Handbook of Applied Cryptography, CRC Press, 2001, the entirety of which is incorporated by reference herein.)

Perfect forward secrecy refers to the protection of past session keys given the compromise of the long-term key. That is, if the adversary obtains l at time i, she is unable to infer the session keys {k₀, . . . , k_(i-1)}. In comparison, the resistance of the method to known-key attacks refers to the protection of future session keys given the knowledge of past session keys (but no knowledge of the long-term key). Taken together, these two requirements state that in the event of a key breach, the adversary is able to recover past or future session keys with only a small probability.

B. Replacement Efficiency

The efficiency of a key replacement algorithm or method can be quantified in a variety of ways:

-   -   Number and bandwidth of messages required;     -   Complexity of computation at the sending party and the receiving         party, measured by number of simple operations; and/or     -   Size of storage and memory requirements.

Disclosed herein is an example method that does not require explicit key replacement communication or unreasonable memory requirements. This example method uses Markov models in a synchronized way to choose the replacement keys. However, this introduces a tradeoff because the security of this method depends on the unpredictability of pseudo-random number generators (PRNGs). In practice, it is difficult to have truly unpredictable PRNGs and existing implementations require non-trivial computation. Hence while this method improves the communication overhead and memory requirements, it does so at the expense of requiring some non-trivial computations.

In general, secure methods require non-trivial computations. In Section Error!Reference source not found, methods in accordance with embodiments of the present invention are contrasted with some existing key exchange methods, exploring the various tradeoffs between efficiency and security.

III. Markov Key Replacement Method

Suppose that the sending party and the receiving party have identical Markov models in the same state. Let each state of the model correspond to a session key. Assume that the sending party and the receiving party synchronize their key replacements. For example, they may agree to change their keys at regular time intervals. An example key replacement method in accordance with an embodiment of the present invention is introduced below with a simple example.

A. Illustrating Example

Let the sending party and the receiving party agree upon the Markov model shown in FIG. 1. As illustrated in FIG. 1, this Markov model includes four states, labeled 101, 102, 103, and 104. Each state represents a unique session key. Suppose that the sending party and the receiving party are currently using key 102. At the next key replacement time, the sending party starts to use either key 101 or key 103 with equal probability. Suppose the sending party chooses key 101.

The receiving party, having both the model and the current key, knows that the replacement key is either 101 or 103. He is able to determine which key is correct by checking the message integrity (detailed below) for each key. After the integrity check, the receiving party knows that the sending party is using key 101 and starts to use key 101.

The receiving party and the receiving party thus regain synchrony. At the next key transition, the above steps are repeated.

The states and possible transitions are shown in FIG. 1, while a corresponding probability matrix for these states is shown below:

$\begin{pmatrix} {.5} & {.5} & 0 & 0 \\ {.5} & 0 & {.5} & 0 \\ {.5} & 0 & 0 & {.5} \\ 0 & 0 & {.5} & {.5} \end{pmatrix}\quad$

The following sections describe how the session keys are used to encrypt messages and how the receiving party determines if he is using the correct key. Then, the specification and construction of the Markov model are detailed, and their use is described in the context of the sending party's and the receiving party's key replacement algorithms. Finally, an analysis of the complexity and costs of this example method are described.

B. Message Model

The superscripts a, b are used herein to denote the influence or ownership of the sending party or the receiving party, respectively.

During key epoch i, the sending party forms the ciphertext x_(i) by encrypting the message s_(i) ^(a) with her session key k_(i) ^(a)

x _(i)=ƒ_(e)(s _(i) ^(a) ,k _(i) ^(a)),  (1)

and the receiving party recovers the message by decrypting the cipher-text with his key

s _(i) ^(b)=ƒ_(d)(x _(i) ,k _(i) ^(b)).  (2)

The encryption and decryption functions satisfy

s=ƒ _(d)(f _(e)(s,k),k)  (3)

and hence the sending party and the receiving party can communicate when k_(i) ^(a)==k_(i) ^(b).

Assume that the message includes an integrity check (e.g., checksum), so that the receiver knows when the message is received correctly (s_(i) ^(b)=s_(i) ^(a)). For example, the message may be appended with a CRC-32 (cyclic redundancy check), which will match when the correct key is used to decrypt. Writing the integrity check as ψ(·), yields

$\begin{matrix} {{\psi \left( {x_{i},k} \right)} = \left\{ \begin{matrix} \left. 0\Rightarrow{s_{i}^{a} \neq {s_{i}^{b}\mspace{14mu} {or}\mspace{14mu} k_{i}^{a}} \neq k} \right. \\ {\left. 1\Rightarrow s_{i}^{a} \right. = {{s_{i}^{b}\mspace{14mu} {and}\mspace{14mu} k_{i}^{a}} = k}} \end{matrix} \right.} & (4) \end{matrix}$

That is, when the integrity check fails (ψ(·)=0), the receiving party is certain that the message is received in error or that the keys are mismatched. Conversely, when the integrity check passes, the receiving party knows that the message and key are both correct. Therefore, the receiving party can use the outcome of ψ(·) to determine if he is using the correct key.

For clarity of the following discussion, assume that a passed integrity check implies perfect message reception with the correct key. However, in actuality there may be a non-zero probability that an incorrect key or message can lead to a passed integrity check. For instance, it is possible to pass a CRC check when the incorrect key was used to decrypt. Section VI elaborates on the effect of such errors.

C. Family of Markov Models

The sending party and the receiving party choose the same Markov model from a large family of models. The chosen model may be viewed as the long-term key shared by the sending party and the receiving party. They use this model to determine the subsequent session keys that they will use to encrypt their traffic. Clearly, there may be many possible models and many possible session keys to choose from. Otherwise, the adversary may be able to deduce the long- and short-term keys through brute-force efforts.

Described below are the specifications of the Markov models. Although the transition matrices are sparse, the storage requirements for even a single model are prohibitively large. According to an embodiment, the hurdle of the prohibitively large Markov models is overcome by presenting a random-access algorithm that removes the need to store the entire family of models in memory.

1) Markov Model Specification: Denote a Markov model by λ=(A,π), where A is the transition probability matrix and π contains the initial key probabilities. Suppose that the session keys are drawn from a keyspace κ with size K, i.e., |κ|=K. Then A is a K×K matrix and π is a K×1 column vector. A(m, n) is the probability of transitioning from key m to key n, and π(m) is the probability of starting with key m.

For initialization purposes, the choice of model λ determines the initial key k₀. That is, π is non-zero for exactly one entry.

$\begin{matrix} {{\sum\limits_{m}^{\;}\; {I\left( {\pi (m)} \right)}} = 1} & (5) \end{matrix}$

where (I·) is the indicator function.

To limit the complexity of the receiver (Section III-C2), the models are restricted so that each key can transition to one of exactly d possible keys. The parameter d is called the branching factor of the model.

The key transitions are equiprobable. That is, if a transition from key m to n exists, it is taken with probability 1/d.

$\begin{matrix} {{{\sum\limits_{n}^{\;}\; {I\left( {A\left( {m,n} \right)} \right)}} = d},{\forall m}} & (6) \\ {{{A\left( {m,n} \right)} \in \left\{ {0,\frac{1}{d}} \right\}},{\forall m},n} & (7) \end{matrix}$

In general there is an entire family of Markov models that the sending party and the receiving party could choose from. Let the models be drawn from a collection A with equal probability 1/L, where |Λ|=L.

2) Construction: A single Markov model requires O(dK) memory, since limiting the branching factor d makes the number of total transitions linear in K. For 32-bit keys with branching factor 2, the model requires at least 1 gigabyte of memory, as illustrated in FIG. 2.

Storing the entire family of L Markov models thus requires O(dKL), and quickly becomes infeasible when L or K grow large. Even with small key sizes L=K=2³² and a modest branching factor of d=2, the storage requirement is approximately 2³²⁺³²⁺¹, or 4.3 billion gigabytes. Clearly, storing entire models in memory is not feasible when realistic values for key length and number of keys are considered.

Note that in order for the algorithm to run, the sending party and the receiving party only need to know the current key and the possible replacement keys. Therefore, they only need to store these values in memory. Of importance, therefore, is a Markov model where the sending party and the receiving party are able to directly access the transition probabilities for a given key without having to store the entire model in memory.

Assume m-bit keys. Given the current key j, how do the sending party and the receiving party find the set of possible next keys? One possibility is outlined below and illustrated in FIG. 3.

-   1) Seed a pseudo-random number generator (PRNG) 302 with a value     f(l,j), where l is the key that chooses the model λ and i is the     current key. For example, f(·) might be specified by f(l,j)=K*l+j. -   2) Until there are d unique keys, select m-bit segments of the     output of PRNG 302. Each chunk corresponds to a candidate next key. -   3) The transition probabilities of each candidate key are 1/d.     Since π chooses a single initial key, it is easy to specify. One     possibility is to always choose the first key reachable from key 0.     The requirements of PRNG 302 are described in Section IV.

For the remainder of this disclosure, it is assumed that randomly generated Markov models are used.

D. Key Replacement Algorithm

Before presenting key replacement algorithms of embodiments of the present invention, the goal of such key replacements, in terms of key synchrony, are described.

Definition 1: The keys of the sending party and the receiving party are synchronized for n key epochs when

k_(i) ^(a)=k_(i) ^(b), 0≦i<n  (8)

Definition 2: The time-to-failure of the method is n₀, where

$\begin{matrix} {n_{0} = {{\arg \; {\min\limits_{i}\; k_{i}^{a}}} \neq k_{i}^{b}}} & (9) \end{matrix}$

Clearly, n₀>0 since the initial keys are the same. The time-to-failure, n₀, is large. In fact, n₀=∞ when the integrity check is perfect, as set forth in Section V.C. The synchrony time for imperfect integrity checks is addressed in Section VI.

An example key replacement algorithm for the sender and the receiver is now described.

1) Key Replacement (the sending party): At the beginning of key epoch i+1, the sending party uses λ^(a) and k_(i) ^(a) to generate the next key k_(i) ^(a)+1:

-   -   (1) Find the set of possible keys from k_(i) ^(a): N={n|A(k_(i)         ^(b),n)>0}.

2) Assign k_(i) ^(a)+1=nεN w.p. 1/d

After the key is chosen, the sending party uses it to encrypt future messages. The sending party does not explicitly signal any key information to the receiving party.

2) Key Recovery (the receiving party): At the beginning of key epoch i+1, the receiving party starts to receive messages encrypted with a different key. Assume that the session keys were synchronized in the previous epoch, i.e., k_(i) ^(a)=k_(i) ^(b) Since λ^(b)=λ^(a), the receiving party knows the transition probabilities of the next keys.

1) Find the set of possible keys from k_(i) ^(a): N={n|A(k_(i) ^(b),n)>0}.

2) For each key nεN:

-   -   If (x_(i),n)=1 then assign k_(i) ^(b)+1=n and halt.     -   Else continue.

Since it is assumed that k_(i) ^(a)=k_(i) ^(b) and λ^(b)=λ^(a), the receiving party considers the same replacement keys as the sending party did. The receiving party selects the correct key, assuming that the integrity check works correctly. The case of imperfect integrity checks is described in Section VI.

Assuming epoch synchrony and correctly functioning integrity checks, the receiving party and the sending party will remain in key synchrony, i.e., the time-to-failure n_(0=∞.)

E. Complexity and Costs

The communication, computation, and memory requirements of an example key replacement method of embodiments of the present invention are now described.

Communication: Aside from the initial synchronization of Markov models, there is no further explicit key replacement messages sent between the sending party and the receiving party. That is, after sharing log₂ (L) bits of information for initialization, the method requires no additional bits to be transmitted over the channel.

In typical networks, synchrony may already be maintained. Consequently, requiring that the sending party and the receiving party remain synchronized adds little to no overhead. Alternatively, if the integrity check works perfectly, the need for synchrony vanishes. The sending party can change the session key at will and the receiving party will be able to detect the change and search for the new key. On the other hand, if the receiving party does not detect a key change, either the integrity check is imperfect or the receiving party has temporarily stopped communicating with the sending party. These cases are treated in Section VI.

Computation: The transmitter only needs to select a key from the set of possible future keys. The receiver, however, needs to check the set of keys until the correct one is found. Thus, the receiver needs to perform between 1 and d decryptions and integrity checks. Since the next key is chosen with equal probability from the set, the receiver will perform d/2 decryptions and integrity checks on average.

Since the key transitions are not stored in memory, there is a computation cost to generate them. As described in Section V, an embodiment of the present invention uses cryptographically secure PRNGs (CSPRNGs), which have higher complexity than non-CS PRNGs. For example, the Blum Blum Shub CSPRNG has complexity equal to RSA. (See L. Blum, M. Blum, and M. Shub, “A Simple Unpredictable Pseudo-Random Number Generator,” SIAM Journal on Computing, vol. 15, pp. 364-383, May 1986, the entirety of which is incorporated by reference herein.)

Memory: Both the transmitter and the receiver need to have in memory the set of possible future keys. Since there are d possible keys, the minimum storage requirement is d log₂(K) bits. As described above, this is achievable—i.e., it is not necessary (or possible in most instances) to store the entire set of Markov models in memory.

IV. Random Markov Model: Structure

Since Markov models are used for session key replacement, the structure of the (pseudo-) randomly generated model is of interest. Though the models are deterministic given the particular PRNG used for generation, it is assumed that they are statistically random and unpredictable (as discussed in Section V). Thus, without fully specifying the model, which is infeasible for realistic key sizes, the structure of the model appears random. Accordingly, certain properties of the models cannot be guaranteed, but probabilistic statements can be made. An event occurs with high probability, when it occurs with probability 1 as the K increases without bound.

For any given key, the set of keys that may be chosen in the future should be large so that it is infeasible for an adversary, given reasonable constraints on the adversary's ability, to perform a brute-force attack (i.e., test every key). In other words, it is undesirable to have a situation where choosing a particular key limits the choices of subsequent session keys.

In terms of graph theory, the reachable subspace of K should be large for most keys in K. A key ν is reachable from u if there exists a (directed) path from u to ν: u

ν The reachable subspace for a key u is therefore the set of all possible ν for which u

ν.

It is shown below that given any initial key, the reachable keyspace is large, that is, O(K). First, the concept of strongly connected components are introduced. Results from graph theory are used to show that the size of a single giant connected component (“GCC”) depends on the branching factor d. (See C. Cooper and A. Frieze, “The size of the largest strongly connected component of a random digraph with a given degree sequence,” Combinatorics, Probability and Computing, vol. 13, no. 3, pp. 319-337, May 2004, the entirety of which is incorporated by reference herein.) Finally, it is shown that with probability 1, (i) all keys can reach the GCC and (ii) no keys leave the GCC. That is, the random Markov models are guaranteed to give highly random key replacements.

A. Size of the GCC

To facilitate the discussion, the following terms from graph theory are defined: strongly connected; strongly connected components; giant connected component; fan-in; and fan-out.

Definition 3: A digraph S is a strongly connected when there exists directed paths between any randomly chosen pair of vertices u, νεS:

u

ν  (10)

ν

u  (11)

Definition 4: The strongly connected components (SCCs) of a digraph are the maximal strongly connected subgraphs. For a given digraph, the SCCs may be identified using efficient algorithms such as Tarjan's algorithm (see R. Tarjan, “Depth-first search and linear graph algorithms,” SIAM Journal on Computing, vol. 1, no. 2, pp. 146-160, 1972, the entirety of which is incorporated by reference herein) or Gabow's algorithm (see J. Cheriyan and K. Mehlhorn, “Algorithms for dense graphs and networks on the random access computer,” Algorithmica, vol. 15, no. 6, pp. 521-549, June 1996, the entirety of which is incorporated by reference herein).

Definition 5: When the size of a SCC reaches O(K), it is typically referred to as the giant connected component (GCC) since it dominates the other SCCs in size.

The significance of the GCC is that for any given key in the GCC, it can reach any other key of the GCC given enough transitions. When the GCC is large, this implies that there are many keys that can be chosen in the future, which is good for security.

Definition 6: The fan-in of a node u is the set of vertices u for which u

ν.

Definition 7: The fan-out of a node u is the set of nodes u for which u

ν. The fan-out (or fan-in) of a vertex is large when its size is O(K). Let L⁺ be the set of vertices with a large fan-out, and let L⁻ be the set of vertices with a large fan-in.

Intuitively, when a node u has a large fan-out and a distinct node ν≠u has a large fan-in, the path u

ν exists with high probability. Thus, nodes that have both large fan-in and large fan-out are likely to be connected. (See C. Cooper and A. Frieze, “The size of the largest strongly connected component of a random digraph with a given degree sequence,” Combinatorics, Probability and Computing, vol. 13, no. 3, pp. 319-337, May 2004, the entirety of which is incorporated by reference herein.)

Let π⁻(π⁺) be the probability that a randomly chosen vertex has a large fan-in (large fan-out). It follows that |L⁻|=π⁻K and |L⁺|=π⁺K. They are the smallest non-negative solutions of

$\begin{matrix} {{1 - \pi^{-}} = {\sum\limits_{i}\; {p_{i}^{-}\left( {1 - \pi^{-}} \right)}^{i}}} & (12) \\ {{1 - \pi^{+}} = {\sum\limits_{i}\; {p_{i}^{+}\left( {1 - \pi^{+}} \right)}^{i}}} & (13) \end{matrix}$

where p_(i) ⁻(π⁺) is the probability that a key has exactly i incoming (outgoing) transitions. These probabilities are calculated as:

$\begin{matrix} {p_{i}^{-} = {\begin{pmatrix} K \\ i \end{pmatrix}{p^{i}\left( {1 - p} \right)}^{K - i}}} & (14) \\ {p_{i}^{+} = \left\{ \begin{matrix} 1 & {i = d} \\ 0 & {otherwise} \end{matrix} \right.} & (15) \end{matrix}$

where p is the probability that there exists a transition between a randomly chosen pair of current and next keys. Since each vertex has constant out-degree d, it follows that p=d/K. The in-degree distribution is given by the binomial probability mass function with parameter p.

When d>1, π⁻ has a unique solution in (0,1), and π⁺=1. In other words, a positive fraction of vertices have large fan-in while all vertices have large fan-out (i.e., |L⁺|=K. Based on the argument above, the size of the GCC is approximately

$\begin{matrix} {{G} \cong {{L^{-}\bigcap L^{+}}}} & (16) \\ {\cong {{L^{-}} + {L^{+}} - {{L^{-}\bigcup L^{+}}}}} & (17) \\ {\cong {\left( {\pi^{+} + \pi^{-} - \left( {1 - \psi} \right)} \right)K}} & (18) \\ {where} & \; \\ {\psi = {\sum\limits_{ij}^{\;}\; {{p_{ij}\left( {1 - \pi^{-}} \right)}^{i}\left( {1 - \pi^{+}} \right)^{j}}}} & (19) \\ {= 0} & (20) \end{matrix}$

since π⁺=1. Thus, the GCC G is unique with size

|G|=≅π⁻K  (21)

with probability approaching 1 as K↑∞.

Table 1 shows the theoretical and observed size of the GCC for various branching factors. For each value of d, 100 matrices of size K=2¹⁰ were generated. The size of the GCC was found using Tarjan's algorithm and averaged over each realization. Shown in Table 1 is the ratio of GCC size to K. The theoretical GCC size matches very well with the empirical evidence. Clearly, increasing d increases the proportion of the GCC, though the gains diminish after d=4.

When the size of the GCC is less than K, the size of the reachable subspace is diminished. In bits, the penalty is

Penalty=−log 2(|G|/K)  (22)

For example, if the GCC has size 2⁹ but the keyspace has size 2¹⁰, then the penalty is 1 bit. Thus, the keys that are traversed offer the security of a 9-bit key instead of a 10-bit key.

Note the significant decrease in penalty as the branching factor is increased from 2 to 4. Diminishing improvements are observed for larger branching factors.

B. Reachability of the GCC

Since the GCC G is large, any key k E G has a reachable subspace with size O(K) by definition. However, what about those keys that are not in G? In order to guarantee keys that traverse a large space, it is shown that with high probability

-   -   regardless of initial key, the key replacement algorithm         eventually chooses members of the GCC, and     -   if the current session key is in the GCC, future replacement         keys will remain in the GCC.

TABLE 1 GCC Proportion Branching Penalty Factor Theory Empirical (bits) 2 .7972 .7972 .3369 3 .9408 .9404 .0881 4 .9803 .9801 .0287 5 .9931 .9932 .0100 6 .9975 .9977 .0036 7 .9991 .9990 .0013 8 .9997 .9997 .0005

First observe that when a key leaves the GCC, it does not have a path that returns to the GCC. To see why, suppose that the path G

ν exists, where ν∉G. If a path ν

G exists, then since G

ν this implies that νεG, which is a contradiction. In other words, when the replacement key sequence transitions outside of the GCC it can never return. Therefore, it is shown that once a key from the GCC is chosen, keys outside the GCC are never chosen in the future.

The keys that are not in G are referred to as external. Let G⁻ be the set of external keys that have a path to G and let G⁺ be the set of external keys that are reachable from G, i.e.,

G⁻={u|u→G}  (23)

G⁺={ν|G→ν}  (24)

The resulting set B=G⁻∪G∪G⁺ forms a bowtie digraph as shown in FIG. 5. The bows of the graph are formed by two wings: G⁺=L⁺∩L⁻ and. G⁻= L⁺ ∩L⁻

Recall that |L⁺|=K and hence L⁺=K. Hence β=K, i.e., the bowtie graph encompasses all vertices in the space. It follows that L+= and therefore G⁻=. Therefore, any randomly chosen key is either in G⁺ or G· L⁺ ∩L⁻

The structure of B yields the following properties:

-   1) If a key is not in G, then it is in G. Therefore, with     probability 1 the current state will eventually be in G. With     probability approaching 1 as K↑∞, any randomly chosen key will enter     the GCC. -   2) Once a key is in the GCC, it will not depart since with     probability approaching 1 as K↑∞, |G⁻|=0.

In terms of session keys, the structure of the random Markov model guarantees that each session key can reach a large subset (O(K)) of the keyspace. Therefore, the session keys that are generated from a key exchange method of embodiments of the present invention will traverse a large space, thereby making the task of the adversary difficult.

V. Security of an Example Key Replacement Method

A key replacement method of embodiments of the present invention has perfect forward secrecy and is resistant to known-key attacks.

Suppose that an adversary is able to discover the long-term key l as well as the session key k_(i) ^(a)=k_(i) ^(b). Is the adversary able to recover the past session keys {k₀, . . . , k_(i=1)}? While the forward transitions are easy to calculate, by the nature of the construction (Section III), it is not as easy to find the backward transitions. When the adversary does not know about the structure of the Markov model in use, she has no choice but to brute-force search the keyspace to find the possible previous keys. This is the ideal case in terms of security since it offers perfect forward security.

However, since the model is randomly generated, the security afforded by the underlying PRNG is relied upon. If the adversary is able to discover the structure of the PRNG, the adversary is potentially able to discover the prior session keys. Thus, the forward security of the proposed key replacement method relies on the unpredictability of the PRNG. Cryptographically secure PRNGs (CSPRNG) are designed to be unpredictable at the cost of increased computation cost.

Now suppose that an adversary is able to capture only a session key k_(i) ^(a)=k_(i) ^(b). What is the adversary able to discover about future session keys or the long-term key? We quantify the adversary's information by equivocation (conditional entropy). It is shown that the following properties about the codebook Λ hold:

H(k _(i+) |k _(i))≅H(K) (Entropy of next key)  1)

H(l|k _(i))≅H(Λ)

where K is the collection of session keys and Λ is the collection of Markov models. That is, given the current session key, little information is revealed about subsequent session keys or the Markov model in use.

The equivocation of the generated keys also relies on the underlying PRNG. To ensure keys with high equivocation, the PRNG output should be statistically random, i.e., be close to uniformly distributed so that there is no skew or bias. However, PRNGs that pass statistical tests are not necessarily sufficient for security purposes. For example, though the digits of it may pass any statistical test for randomness, they are predictable and hence exploitable by any reasonably capable adversary. Thus, the PRNG should not only produce seemingly random output, but also be unpredictable to the adversary.

A. Entropy of Next Key

Given a model and the current key, there are d candidates for the next key. Over all L possible models that are generated from the same PRNG, there are therefore dL candidates uniformly distributed over the K possible keys. The probability of transitioning from key m to key n is therefore

$\begin{matrix} {{\frac{1}{dL}{\sum\limits_{l}^{\;}\; {A^{1}\left( {m,n} \right)}}} = {\frac{1}{dL}{{A\left( {m,n} \right)}}}} & (25) \end{matrix}$

The entropy is therefore

$\begin{matrix} {H\left( {{k_{i + 1}\left. {k_{i} = m} \right)} = {\sum\limits_{n}^{\;}\; {h\left( {\frac{1}{dL}{{A\left( {m,n} \right)}}} \right)}}} \right.} & (26) \\ {{where}\text{}{{h(x)} = {{- x}\; {\log_{2}(x)}}}} & (27) \end{matrix}$

Since the keys are chosen uniformly over each A, P(|A(m,n)|=x) is approximated by the Poisson distribution

$\begin{matrix} {{P\left( {{{A\left( {m,n} \right)}} = x} \right)} = {f\left( {x,\overset{\_}{x}} \right)}} & (28) \\ \frac{{\overset{\_}{x}}^{x}^{- \overset{\_}{x}}}{x!} & (29) \end{matrix}$

where x is the expected number of occurrences. In this case, x=dL/K.

The entropy of the next key can thus be approximated

$\begin{matrix} {{H\left( {k_{i + 1} = m} \right)} = {\sum\limits_{x}^{\;}\; {{E\left\lbrack {{{A\left( {m,n} \right)} = x}} \right\rbrack}{h\left( \frac{x}{dL} \right)}}}} & (30) \\ {= {\sum\limits_{x}^{\;}\; {{{Kf}\left( {x,\overset{\_}{x}} \right)}{h\left( \frac{x}{dL} \right)}}}} & (31) \end{matrix}$

FIG. 6 shows that the entropy is close to the maximum when the branching probability is high and the number of models L is high. The critical point is that dL must be greater than K. This ensures that over all the models the possible keys are sufficiently random. Note that with sufficiently many models, the branching factor contributes only a small amount of entropy.

B. Entropy of an Example Random Access Markov Model

The current state should give little information about which model λ is being used. As set forth above, the GCC G has size O(K), and the number of non-zero stationary probabilities μ_(i) are also O(K). For large d, |G|≈K.

The key sequence generated using the model forms a Markov chain. Assume that the Markov chain is in steady state. Let the stationary probability of key i under model l be μ_(i) ^(l). Then the entropy of the model given the key is

$\begin{matrix} {{H\left( {lk_{i}} \right)} = {\sum\limits_{l}^{\;}\; {h\left( \frac{u_{i}^{l}}{\sum\limits_{l}^{\;}\; u_{i}^{l}} \right)}}} & (32) \end{matrix}$

Experiment illustrates that the stationary probabilities are well approximated by a Rayleigh distribution when d is small and a normal distribution when d is large, as illustrated in FIGS. 7 and 8, respectively. Thus, when there are L independent instances of μ_(i) ^(l), they follow this distribution.

FIG. 9 shows that the model entropy is close to the maximum when the branching probability is high and the number of models L is high. Increasing the branching factor improves the model entropy.

C. Entropy Rate

Since the GCC is strongly connected, it is irreducible. With high probability, random digraphs are also a periodic. An irreducible and a periodic Markov chain converges to its unique stationary distribution μ, and the resulting entropy rate is

$\begin{matrix} {{H(X)} = {{- {\sum\limits_{m,{n \in G}}^{\;}\; {\mu_{m}A_{mn}{\log A}_{mn}}}} \leq {\log \; d}}} & (33) \end{matrix}$

with equality when a transition between keys m and n implies that A_(mn)=1/d. Thus entropy rate is maximized when future keys are equiprobable.

Note that the calculated entropy rate is for a given Markov model. Given that it is known, the entropy rate is given by equation (33). When the model is not known, the entropy of the next key was shown to be high, near the entropy of the keyspace K (Section V.A).

Having a higher entropy rate is beneficial for security since a model will become associated with many paths rather than only a few. (Consider the multiplicity of paths that arise when d is increased from 1.) This in turn makes it more difficult for an adversary to determine which model is being used. Although an adversary may try to use the Baum-Welch algorithm (see L. R. Welch, “Hidden Markov Models and the Baum-Welch Algorithm,” IEEE Information Theory Society Newsletter, vol. 53, no. 4, pp. 1, 10-13, December 2003, the entirety of which is incorporated by reference herein), it is not accurate unless the number of observations is very high with respect to size of the state space. Of course, with large keys that will not be the case.

VI. Extension: Imperfect Key Recovery

In Section III, it was assumed that the receiving party is able to determine the correct key without error. This is usually a good approximation. But, this section describes the effects of detection error on a key replacement method in accordance with an embodiment of the present invention.

Suppose that the ciphertext x_(i) has been encrypted with key k_(i):

x=ƒ _(e)(s,k _(i))  (34)

When a single key is tested, there are two cases where the key recovery fails.

-   1) Missed detection: the correct key is tested (k=k_(i)) but fails     the check with probability 1−p>0:

$\begin{matrix} {{\psi \left( {x,{k = k_{i}}} \right)} = \left\{ \begin{matrix} 0 & {{w \cdot p \cdot 1} - p} \\ 1 & {w \cdot p \cdot p} \end{matrix} \right.} & (35) \\ \; & (36) \end{matrix}$

-   2) False alarm: the wrong key is tested (k≠k_(i)) but passes the     check with probability α>0:

$\begin{matrix} {{\psi \left( {x,{k \neq k_{i}}} \right)} = \left\{ \begin{matrix} 0 & {{w \cdot p \cdot 1} - \alpha} \\ 1 & {w \cdot p \cdot \alpha} \end{matrix} \right.} & (37) \end{matrix}$

Recall that the recovery performed by the receiving party (Section III) checks the validity of d keys. It is assumed that the trials have independent outcomes. Considering a set of d keys, there are four possible outcomes.

-   1) The correct key passes the integrity check (all others fail).     This occurs with probability

Pr[Case 1]=p(1−α)^(d-1)  (38)

-   2) The wrong key passes the integrity check (all others fail). This     occurs with probability

Pr[Case 2]=(d−1)(1−p)α(1−α)^(d-2)  (39)

-   3) No keys pass the integrity check. This occurs with probability

Pr[Case 3]=(1−p)(1−a)^(d-1)  (40)

-   4) Multiple keys pass the integrity check. This occurs with     probability

Pr[Case 4]=1−Pr[Case 1, 2, or 3]  (41)

Looking ahead to Section VI-B, the probability of a correct detection Pr[Case 1] should be sufficiently high, otherwise the sending party and receiving party will lose synchrony quickly. The following section describes a modified key recovery method in accordance with an embodiment of the present invention. This modified key recovery method improves the detection probability in the midst of errors.

A. Extended Recovery Method

In general, a key is used for multiple messages. Rather than determining the replacement key after a single message, consider the utility of using C messages. For the key epoch i, denote the messages using the same key as x_(i) ¹,x_(i) ², . . . .

The number of times the check passes is independent for each key. The receiving party tallies the number of times a key passes the check over the C messages, and selects the key that has the most positives.

Again assume that k_(i) ^(a)=k_(i) ^(b) and λ^(b)=λ^(a) so that the receiving party knows the transition probabilities to the next key.

1) Find the set of possible keys from k_(i) ^(b): N={n|A(k_(i) ^(b),n)>0}.

2) For each key nεN

$\begin{matrix} {{T\lbrack n\rbrack} = {\sum\limits_{c = 1}^{C}\; {\psi \left( {x_{i}^{c},n} \right)}}} & (42) \end{matrix}$

3) Select k_(i+1) ^(b)=arg max_(n) T[n]

The probability that the correct key will be detected c times out of C is given by the binomial probability B(c,C,p). Similarly, for the incorrect keys the probability is B(c,C,α). Therefore, since the trials have independent outcomes, the probability that the receiving party chooses the correct key is the probability that the correct key is detected more times than any other key.

$\begin{matrix} {\overset{\simeq}{p} = {\Pr \left\lbrack {k_{i + 1}^{b} = k_{i + 1}^{a}} \right\rbrack}} & (43) \\ {= {\sum\limits_{c = 1}^{C}\; {{B\left( {c,C,p} \right)}\left( {\sum\limits_{d = 0}^{c - 1}\; {B\left( {d,C,a} \right)}} \right)^{d - 1}}}} & (44) \end{matrix}$

Aside from the detection and false alarm probabilities (p, α, respectively), the number of messages C determines the detection probability {tilde over (p)} of the correct key. FIG. 10 shows that the probability of choosing the wrong key falls exponentially as C increases. Further, the test does not need to consider large C when the detection probability p is high.

B. Synchronization Performance

The probability that the receiving party chooses the incorrect key is ε=1−{tilde over (p)}. Thus, the probability that the sending party and the receiving party lose synchrony at epoch n₀ is

Pr(Lost at n ₀)=ε(1−ε)^(n) ⁰ ⁻¹  (45)

The case of interest occurs when the sending party and the receiving party maintain synchrony for at least n₀ with a certain probability. That is,

$\begin{matrix} {{\Pr \left( {n_{0} > n} \right)} = {\sum\limits_{n < n_{0}}^{\;}\; {\Pr \left( {{Lost}\mspace{14mu} {at}\mspace{14mu} n_{0}} \right)}}} & (46) \\ {= {1 - \left( {1 - ɛ} \right)^{n -}}} & (47) \\ {n = \frac{\log \left( {1 - {\Pr \left( {n_{0} > n} \right)}} \right)}{\log \left( {1 - ɛ} \right)}} & (48) \end{matrix}$

For example, when ε=10⁻⁴, then with probability 99.99% the sending party and the receiving party remain synchronized for at least 9.2*10⁴ keys. FIG. 11 shows the number of key transitions before failure for various confidence levels.

C. Complexity and Costs

When the recovery of the key is extended for C messages, the number of computations and memory requirements increase.

Communication: There is no increase in the number of exchanged messages.

Computation: Since the computations are identical for each message, the computations increase by a factor of C. The final step of selecting the key with the largest score requires negligible computation.

The cost of running the PRNG does not change and is the same as in Section III-D.

Memory: The set of possible keys remains constant over the duration of the test, so there is no additional cost. However, there is the need to keep the tally of how many times each key passes the integrity checks. This requires log₂ (C) bits per key, or dlog₂ (C) bits in total. Note that there was no need to keep score in the previous section because exactly one key would satisfy the integrity check.

VII. Applications

Described below are examples of how a key replacement method of embodiments of the present invention may be used. This list is by no means comprehensive and is meant only to provide illustrative possibilities. A person skilled in the relevant art(s) will appreciate that a key replacement method of embodiments of the present invention may be used in other applications in which information is exchanged responsive to a variable that changes over time.

A. Cryptography

A key replacement method of an embodiment of the present invention may be used to replace keys in cryptographic frameworks. In cryptography, all data is assumed to be received without error. That is, the physical layer is abstracted away to provide an error-free channel.

In this case, the correct key always passes the integrity check, so p=1. The probability that an incorrect key passes the check is given by the collision probability α. For example, when the integrity check is a 32-bit tag, the probability that two randomly chosen unique keys have the same tag are 2⁻=2×100. Thus, a single message is sufficient to determine the next key with high probability, and the number of transitions to failure is very high (Section VI-B).

B. Frequency Hopped Communications

Rather than restricting methods of embodiments of the present invention to key replacement, such methods may be used in other situations where a variable changes pseudo-randomly. One such situation is a frequency-hopped system. In frequency-hopped systems, data is transmitted over different carriers that change at deterministic intervals. Rather than having the data carriers change deterministically as well, a method according to an embodiment of the present invention may be used to select the carrier (or set of carriers). Of particular interest are multi-carrier authentication systems where the placement of the authentication tag may be chosen according to a method of an embodiment of the present invention.

Suppose for simplicity that a frequency-hopped system uses one carrier at a time. The detection and false alarm probabilities of embodiments of the present invention are determined by the effective SNR of the channel. When the carrier changes, the receiver can use an energy detector to scan the set of d possible next carriers and decide which contains a signal and which contains noise only.

The analogue of using multiple messages in the previous situations is to extend the energy detection over time to provide a better estimate of which carrier is being used. Also, the increased complexity lies in the necessity of monitoring d carriers simultaneously. However, this may be less of an issue in software-based radio where much of the computation is done in software, and not hardware.

VIII. Other Key Replacement Methods

An overview of a few important key replacement methods is given below. Weaknesses of these other methods that are overcome by a method in accordance with an embodiment of the present invention are also described.

One of the most efficient key replacement methods is the Point-to-Point Key Update. The receiving party uses the long-term key to encrypt a random-generated session key and sends it to the receiving party. The receiving party uses the long-term key to decrypt and recover the session key. In total, this method requires the exchange of a single message, two symmetric encryptions/decryptions, and has no additional storage requirements beyond that of the long-term key. However, this scheme does not have perfect forward secrecy and fails hard when the long-term key is compromised. There are extensions that use one-way functions and nonces to combat these weaknesses. (See A. J. Menezes, P. C. van Oorschot, and S. A. Vanstone, Handbook of Applied Cryptography, CRC Press, 2001, the entirety of which is incorporated by reference herein.)

Instead of using the long-term key to encrypt all the session keys, the idea behind hash chains is to derive past keys from future keys. (See L. Lamport, “Password Authentication with Insecure Communication,” Communications of the ACM, vol. 24, no. 11, pp. 770-772, 1981, the entirety of which is incorporated by reference herein.) In particular, the current session key k_(i) is calculated using the next key k_(i+1) and a one-way hash function H(·), i.e.,

k _(i) =H(k _(i+1))  (49)

the sending party and the receiving party generate a chain of hash values derived from the same initial key k_(n), and begin to use the key k₀. As used herein, a function is one-way when it is easy (feasible) to compute but hard (infeasible, given resource constraints) to invert. To replace the key, they simply use the next key k₁. However, after n key replacements, the sending party and the receiving party need to re-synchronize and generate another hash chain.

Another method is the Diffie-Helman (DH) key agreement protocol. (See W. Diffie and M. E. Hellman, “New directions in cryptography,” IEEE Trans. Inf. Theory, vol. 22, no. 6, pp. 644-654, November 1976, the entirety of which is incorporated by reference herein.) This protocol requires the exchange of two messages, two modular exponentiations, and has no additional storage requirements beyond that of the long-term key (in this case, a prime p and a generator of the multiplicative group of integers modulo p). Modular exponentiations are not trivial computations and are much more intensive than symmetric key operations. A major weakness in the basic DH protocol is the lack of authentication which leads to susceptibility to man-in-the-middle attacks. Therefore, in practice the protocol is supplemented with authentication methods such as encrypted key exchange (“EKE”) (see S. M. Bellovin and M. Merritt, “Encrypted Key Exchange: Password-Based Protocols Secure Against Dictionary Attacks,” in Proceedings of the IEEE Symposium on Security and Privacy, May 1992, pp. 72-84, the entirety of which is incorporated by reference herein), thus increasing the complexity of the DH key agreement protocol.

Another protocol is Kerberos. (See MIT (2007, Oct.) Kerberos: The Network Authentication Protocol, the entirety of which is incorporated by reference herein.) The Kerberos protocol is based on the Needham-Schroeder shared-key protocol. (See R. Needham and M. Schroeder, “Using encryption for authentication in large networks of computers,” Communications of the ACM, vol. 21, pp. 993-999, 1978, the entirety of which is incorporated by reference herein.) The Kerberos protocol uses a trusted authentication server to facilitate key exchange. The authentication server has long-term keys shared individually with the sending party and the receiving party and creates session keys for them to use among themselves. All the encryptions are symmetric and are therefore cheap, but this protocol requires the exchange of more messages because the sending party and the receiving party need to interact with the authentication server. The biggest caveat of course is the existence and cooperation of such an authentication server.

A summary of the requirements of the key replacement methods are shown in Table 2. Note that there is no method that is simultaneously low-complexity, independent of third parties, and secure. A key replacement method in accordance with an embodiment of the present invention is conceptually simple, but due to security requirements may require computationally intensive CSPRNGs. The choice of CSPRNG varies the security of such a key replacement method as well as its computational requirements.

TABLE 2 Number of Method Messages Computation Cost Third Party? Secure? Point-to-Point 1 Inexpensive No No Hash Chains 0 Inexpensive No No Diffie 2 Expensive No Yes Hellmann with EKE Kerberos 4 Inexpensive Yes Yes Markov Key 0 Variable No Yes Models

IX. An Example System and Method

FIG. 12 illustrates an example system 1200, in accordance with an embodiment of the present invention, for sending and receiving information responsive to a variable that changes over time. As set forth above, the variable may be, for example, a session key used in cryptography, or a carrier frequency used in frequency-hopped communications systems, or another type of variable upon which information exchange depends, wherein the variable is synchronously changed by a sending party and a receiving party without any communication from the sending party, the receiving party, or any third party regarding how the variable changes.

Example system 1200 includes a transmitter 1220 and a receiver 1240 that are communicatively coupled. Specifically, transmitter 1220 is configured to send a message responsive to a variable that changes over time, and receiver 1240 is configured to receive the message responsive to the variable that changes over time. As illustrated in FIG. 12, transmitter 1220 and receiver 1240 are communicatively coupled, for example, by a network 1230. This is for illustrative purposes only, and not limitation. In alternative embodiments, a direct communication link (e.g., wired or wireless) may exist between transmitter 1220 and receiver 1240. As illustrated in FIG. 12, network 1230 may be any type of network—such as, for example, a wide area network (WAN), a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a satellite-based network, a wired network, a wireless network, the Internet, another type of network for communicatively coupling a transmitter and a receiver, and/or combinations of the foregoing networks. As described in more detail below, transmitter 1220 and receiver 1240 may comprise any type of device or module for sending and receiving information. In embodiments, for example, transmitter 1220 and receiver 1240 are implemented in hardware, software, firmware, or a combination thereof.

A. Transmitter 1220

Referring to FIG. 12, transmitter 1220 includes a message-generation module 1222, a variable-generation module 1224, and an assignment module 1226.

Message-generation module 1222 is configured to generate a message responsive to variable 1223. In a cryptography application, for example, variable 1223 comprises a session key, and message-generation module 1222 is configured to encrypt the message using the session key. In a frequency-hopped application, for example, variable 1223 comprises a carrier frequency, and message-generation module 1222 is configured to send the message on a current carrier frequency.

Variable-generation module 1224 is configured to generate a plurality of potential next variables according to a random access Markov model in accordance with an embodiment of the present invention. For example, variable-generation module 1224 may generate the plurality of potential next variables based on a current variable (e.g., current session key, current carrier frequency, etc.), a long-term key, and a pseudo-random number generator, as described above with reference to FIG. 3 (see Section III).

Assignment module 1226 is configured to assign one of the plurality of potential next variables as the next variable. In a cryptography application, for example, assignment module 1226 is configured to assign a next session key used to encrypt messages during a next epoch. In a frequency-hopped application, for example, assignment module 1226 is configured to assign a next carrier frequency used to transmit messages during the next epoch. Assignment module 1226 may assign the next variable from among the plurality of potential next variables using a pseudo-random number generator or some other random or pseudo-random process.

After assigning the next variable, message-generation module 1222 is configured to send messages responsive to the next variable.

B. Receiver 1240

Referring to FIG. 12, receiver 1240 includes a reception module 1242, a variable-generation module 1244, and a variable identification module 1246.

Reception module 1242 is configured to receive messages from transmitter 1220 responsive to a variable 1243. In a cryptography application, for example, variable 1243 comprises a current session key, and reception module 1242 is configured to decrypt the message using the current session key. In a frequency-hopped application, for example, variable 1243 comprises a current carrier frequency, and reception module 1242 is configured to receive the message on the current carrier frequency. In an initial epoch, variable 1223 (used by transmitter 1220 to provide the message) and variable 1243 (used by receiver 1240 to receive the message) are synchronized. In each subsequent epoch, variable 1223 and variable 1243 remain in synchrony based on transmitter 1220 and receiver 1240 independently generating variable 1223 and variable 1243, respectively.

For example, variable-generation module 1244 is configured to generate a plurality of potential next variables according to a random access Markov model in accordance with an embodiment of the present invention. For example, variable-generation module 1244 may generate the plurality of potential next variables based on a current variable (e.g., current session key, current carrier frequency, etc.), a long-term key, and a pseudo-random number generator, as described above with reference to FIG. 3 (see Section III).

Variable-identification module 1246 is configured to identify, from among the plurality of potential next variables, the variable that is being used by transmitter 1220 to provide a message during a current epoch. For example, variable-identification module 1246 is configured to implement a integrity check to identify the next variable. As set forth above, the integrity check may comprise, for example, (i) a check sum (e.g., cyclic redundancy check) of a message, (ii) a plurality of check sums of a plurality of messages, (iii) an energy-detection scheme of a carrier frequency, or (iv) some other scheme for determining whether the next variable 1243 identified by variable-identification module 1246 of receiver 1240 is in synchrony with the next variable 1223 assigned by assignment module 1226 of transmitter 1220.

After identifying the next variable, reception module 1242 is configured to receive messages responsive to the next variable.

C. Example Methods

FIG. 13 illustrates an example method 1300 for providing information responsive to a variable that changes over time in accordance with an embodiment of the present invention. Referring to FIG. 13, method 1300 begins at a step 1302 in which a message is provided responsive to a current variable during a first epoch. For example, the message may be provided by message-generation module 1222 of transmitter 1220.

In a step 1304, a plurality of potential next variables are generated according to a random access Markov model in accordance with an embodiment of the present invention. For example, the plurality of potential next variables may be generated based on a current variable (e.g., current session key, current carrier frequency, etc.), a long-term key, and a pseudo-random number generator, as described above with reference to FIG. 3 (see Section III). In an embodiment, step 1304 is implemented, for example, by variable-generation module 1224 of transmitter 1220.

In a step 1306, one of the plurality of potential next variables is assigned as a next variable to be used during a next epoch. The next variable may be assigned from among the plurality of potential next variables using a pseudo-random number generator or some other random or pseudo-random process. In an embodiment, step 1306 is implemented, for example, by assignment module 1226 of transmitter 1220.

In a step 1308, it is determined whether it is time for a next epoch. In an embodiment, a transition from one epoch to another occurs at fixed intervals of time. In another embodiment, transitions between epochs occur at random (or pseudo-random) time intervals. If in step 1308 it is determined that it is not time for an epoch transition, then messages may continue to be provided responsive to the current variable, as indicated in a step 1312.

If, on the other hand, it is determined in step 1308 that it is time for an epoch transition, then the next variable (assigned in step 1306) is assigned as the current variable, as indicated in a step 1310. Flow of method 1300 then proceeds back to step 1302.

FIG. 14 illustrates an example method 1400 for receiving information responsive to a variable that changes over time in accordance with an embodiment of the present invention. Referring to FIG. 14, method 1400 begins at a step 1402 in which a message is received responsive to a current variable during a first epoch. For example, the message may be received by reception module 1242 of receiver 1240.

In a step 1404, a plurality of potential next variables are generated according to a random access Markov model in accordance with an embodiment of the present invention. For example, the plurality of potential next variables may be generated based on a current variable (e.g., current session key, current carrier frequency, etc.), a long-term key, and a pseudo-random number generator, as described above with reference to FIG. 3 (see Section III). In an embodiment, step 1404 is implemented, for example, by variable-generation module 1244 of receiver 1240.

In a step 1406, one of the plurality of potential next variables is identified as a next variable to be used during a next epoch. The next variable may be identified from among the plurality of potential next variables using an integrity check. As set forth above, the integrity check may comprise, for example, (i) a check sum (e.g., cyclic redundancy check) of a message, (ii) a plurality of check sums of a plurality of messages, (iii) an energy-detection scheme of a carrier frequency, or (iv) some other scheme for determining whether the next variable is in synchrony with a next variable used to provide a subsequent message. In an embodiment, step 1406 is implemented, for example, by variable-identification module 1246 of receiver 1240.

In a step 1408, it is determined whether it is time for a next epoch. In an embodiment, a transition from one epoch to another occurs at fixed intervals of time. In another embodiment, transitions between epochs occur at random (or pseudo-random) time intervals. For example, it may be determined that messages can no longer be received using the current variable. If in step 1408 it is determined that it is not time for an epoch transition, then messages may continue to be received responsive to the current variable, as indicated in a step 1412.

If, on the other hand, it is determined in step 1408 that it is time for an epoch transition, then the next variable (assigned in step 1406) is assigned as the current variable, as indicated in a step 1410. Flow of method 1400 then proceeds back to step 1402.

X. Example Computer System and Software Implementation

Various aspects of the present invention—such as, transmitter 1220, receiver 1240, method 1300, and/or method 1440—can be implemented by software, firmware, hardware, or a combination thereof. FIG. 15 illustrates an example computer system 1500 in which an embodiment of the present invention, or portions thereof, can be implemented as computer-readable code. Various embodiments of the invention are described in terms of this example computer system 1500. After reading this description, it will become apparent to a person skilled in the relevant art how to implement the invention using other computer systems and/or computer architectures.

Computer system 1500 includes one or more processors, such as processor 1504. Processor 1504 can be a special purpose or a general purpose processor. Processor 1504 is connected to a communication infrastructure 1506 (for example, a bus or network).

Computer system 1500 includes a display interface 1502. Display interface 1502 is coupled to a display device 1530 (such as, a liquid-crystal display, a cathode-ray tube display, a plasma screen display, or some other type of display).

Computer system 1500 also includes a main memory 1508, preferably random access memory (RAM), and may also include a secondary memory 1510. Secondary memory 1510 may include, for example, a hard disk drive 1512 and/or a removable storage drive 1514. Removable storage drive 1514 may comprise a floppy disk drive, a magnetic tape drive, an optical disk drive, a flash memory, or the like. The removable storage drive 1514 reads from and/or writes to a removable storage unit 1518 in a well known manner. Removable storage unit 1518 may comprise a floppy disk, magnetic tape, optical disk, etc. which is read by and written to by removable storage drive 1514. As will be appreciated by persons skilled in the relevant art(s), removable storage unit 1518 includes a computer usable storage medium having stored therein computer software and/or data.

In alternative implementations, secondary memory 1510 may include other similar means for allowing computer programs or other instructions to be loaded into computer system 1500. Such means may include, for example, a removable storage unit 1522 and an interface 1520. Examples of such means may include a program cartridge and cartridge interface (such as that found in video game devices), a removable memory chip (such as an EPROM, or PROM) and associated socket, and other removable storage units 1522 and interfaces 1520 which allow software and data to be transferred from the removable storage unit 1522 to computer system 1500.

Computer system 1500 may also include a communications interface 1524. Communications interface 1524 allows software and data to be transferred between computer system 1500 and external devices. Communications interface 1524 may include a modem, a network interface (e.g., an Ethernet card), a communications port, a PCMCIA slot and card, or the like. Software and data transferred via communications interface 1524 are in the form of signals 1528 which may be electronic, electromagnetic, optical, or other signals capable of being received by communications interface 1524. These signals 1528 are provided to communications interface 1524 via a communications path 1526. Communications path 1526 carries signals 1528 and may be implemented using wire or cable, fiber optics, a phone line, a cellular phone link, an RF link or other communications channels.

In this document, the terms “computer program medium” and “computer usable medium” are used to generally refer to media such as removable storage unit 1518, removable storage unit 1522, a hard disk installed in hard disk drive 1512, and signals 1528. Computer program medium and computer usable medium can also refer to memories, such as main memory 1508 and secondary memory 1510, which can be memory semiconductors (e.g. DRAMs, etc.). These computer program products are means for providing software to computer system 1500.

Computer programs (also called computer control logic) are stored in main memory 1508 and/or secondary memory 1510. Computer programs may also be received via communications interface 1524. Such computer programs, when executed, enable computer system 1500 to implement embodiments of the present invention as discussed herein, such as method 1300 (FIG. 13) and method 14 (FIG. 14). Accordingly, such computer programs represent controllers of the computer system 1500. Where embodiments of the invention are implemented using software, the software may be stored in a computer program product and loaded into computer system 1500 using removable storage drive 1514, interface 1520, hard drive 1512 or communications interface 1524.

XI. CONCLUSION

Disclosed herein is a key replacement method that exploits the randomness of Markov Models to efficiently provide fresh keys to users. This method is shown to generate highly random keys while remaining lightweight in terms of communication and storage costs. The security of this method depends on the underlying CSPRNG and generally is improved at the cost of increased computational requirements. This method has perfect forward secrecy as well as resistance to known-key attacks. As disclosed herein, the usefulness of this method is not restricted to keys, but extends to any variable that is changes in a synchronous manner between a sending party and a receiving party. For example, this method can apply to frequency-hopped communications systems.

It is to be appreciated that the Detailed Description section, and not the Summary and Abstract sections, is intended to be used to interpret the claims. The Summary and Abstract sections may set forth one or more but not all exemplary embodiments of the present invention as contemplated by the inventor(s), and thus, are not intended to limit the present invention and the appended claims in any way. 

1. A method for sending information responsive to a variable that changes over time, the method comprising: (a) providing, via a transmitter, a message responsive to a current variable; (b) generating a plurality of potential next variables based on a transition function that specifies a transition probability from the current variable to other variables, wherein the transition probability from the current variable to each potential next variable is greater than zero; (c) assigning one of the plurality of potential next variables to be a next variable; and (d) providing, via a transmitter, a subsequent message responsive to the next variable.
 2. The method of claim 1, wherein the generating in (b) comprises: pseudo-randomly generating a string of numbers based on the current variable and a long-term variable; and selecting contiguous groups of numbers from the string of numbers as the plurality of potential next variables, wherein each group of numbers comprises one of the potential next variables.
 3. The method of claim 1, wherein the current variable comprises a current key, and wherein the providing in (a) comprises encrypting and sending the message using the current key.
 4. The method of claim 3, wherein the next variable comprises a next key, and wherein the providing in (d) comprises encrypting and sending the subsequent message using the next key.
 5. The method of claim 1, wherein the current variable comprises a current carrier frequency, and wherein the providing in (a) comprises transmitting the message over the current carrier frequency.
 6. The method of claim 5, wherein the next variable comprises a next carrier frequency, and wherein the providing in (d) comprises transmitting the subsequent message over the next carrier frequency.
 7. A method for receiving information responsive to a variable that changes over time, the method comprising: (a) receiving, via a receiver, a message responsive to a current variable; (b) generating a plurality of potential next variables based on a transition function that specifies a transition probability from the current variable to other variables, wherein the transition probability from the current variable to each potential next variable is greater than zero; (c) identifying a next variable based on an integrity check of each potential next variable; and (d) receiving, via a receiver, a subsequent message responsive to the next variable.
 8. The method of claim 7, wherein the generating in (b) comprises: pseudo-randomly generating a string of numbers based on the current variable and a long-term variable; and selecting contiguous groups of numbers from the string of numbers as the plurality of potential next variables, wherein each group of numbers comprises one of the potential next variables.
 9. The method of claim 7, wherein the current variable comprises a current key, and wherein the receiving in (a) comprises decrypting the message using the current key.
 10. The method of claim 9, wherein the generating in (b) comprises generating a plurality of potential next keys based on a transition function that specifies a transition probability from the current key to other keys, wherein the transition probability from the current key to each potential next key is greater than zero.
 11. The method of claim 10, wherein the identifying in (c) comprises identifying a next key based on an integrity check between a subsequently received message and each potential next key.
 12. The method of claim 11, wherein the identifying in (c) comprises: computing a check sum between each potential next key and the subsequently received message, wherein the next key is identified as one of the plurality of potential next keys for which the check sum is equal to a predetermined value.
 13. The method of claim 11, wherein the identifying in (c) comprises: identifying a next key based on an integrity check between a plurality of subsequently received messages and each potential next key.
 14. The method of claim 13, wherein the identifying a next key based on an integrity check between a plurality of subsequently received messages and each potential next key comprises: computing a check sum between each potential next key and each of the plurality of subsequently received messages, resulting in a corresponding plurality of check sums for each respective potential next key; for each respective potential next key, computing a summation of the corresponding plurality of check sums; and identifying the next key as one of the plurality of potential next keys for which the summation is a greatest value.
 15. The method of claim 7, wherein the current variable comprises a current carrier frequency, and wherein the receiving in (a) comprises receiving a message transmitted over the current carrier frequency.
 16. The method of claim 15, wherein the generating in (b) comprises generating a plurality of potential next carrier frequencies based on a transition function that specifies a transition probability from the current carrier frequency to other carrier frequencies, wherein the transition probability from the current carrier frequency to each potential next carrier frequency is greater than zero.
 17. The method of claim 16, wherein the identifying in (c) comprises identifying a next carrier frequency based on an integrity check of each potential next carrier frequency.
 18. The method of claim 17, wherein the integrity check comprises energy detection of each potential next carrier frequency to determine which includes a signal and which includes only noise.
 19. The method of claim 17, wherein the integrity check comprises energy detection of each potential next carrier frequency over a predetermined time interval to determine which includes a signal and which includes only noise.
 20. A system, comprising: a transmitter for sending information responsive to a variable that changes over time, wherein the transmitter comprises: a message-generation module configured to provide a current message responsive to a current variable; a variable-generation module configured to generate a plurality of potential next variables based on a transition function that specifies a transition probability from the current variable to other variables, wherein the transition probability from the current variable to each potential next variable is greater than zero; and an assignment module configured to assign one of the plurality of potential next variables to be a next variable; wherein the message-generation module is configured to provide a subsequent message responsive to the next variable; and a receiver for receiving information responsive to the variable that changes over time, wherein the receiver comprises: a reception module configured to receive the current message responsive to the current variable; a variable-generator module configured to independently generate the plurality of potential next variables based on the transition function that specifies the transition probability from the current variable to the other variables; and a variable-identifier module configured to identify the next variable based on an integrity check of each potential next variable; wherein the reception module is configured to receive the subsequent message responsive to the next variable. 